
package org.GUI.Modules;
import javax.swing.*;


public class AuthScrollBar extends JFrame {

	JTextField JText = new JTextField("Enter User Name",20);
	JPasswordField JPass = new JPasswordField("Enter Password", 20);
	JTextArea JArea = new JTextArea("Comments...", 10, 20);
	JButton Jbt1 = new JButton("OK");
	JButton Jbt2 = new JButton("Cancel"); 
	
	ImageIcon Imgicn = new ImageIcon("src/toolbarButtonGraphics/development/Host16.gif");
	
	
	public AuthScrollBar() {
		super("Login Information");
		super.setIconImage(Imgicn.getImage());
		//setSize(350, 325);
		setBounds(500, 250, 350, 350);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
				
		JPanel Jp = new JPanel();
		JLabel UsernameLb = new JLabel("Username: ");
		JLabel PasswordLb = new JLabel("Password: ");
		JLabel CommentsLb = new JLabel("Comments: ");
		
		JArea.setLineWrap(true);
		JArea.setWrapStyleWord(true);
		
		Jp.add(UsernameLb);
		Jp.add(JText);
		Jp.add(PasswordLb);
		Jp.add(JPass);
		Jp.add(CommentsLb);
		JScrollPane Jscl = new JScrollPane(JArea,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
	            ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
		Jp.add(Jscl);
		
		Jp.add(Jbt1);
		Jp.add(Jbt2);
		
		add(Jp);
		setVisible(true);
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AuthScrollBar AuthWin = new AuthScrollBar();

	}

}
